﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ihg-container has-ihg-sidemenu">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Assessor Certificate&nbsp;&nbsp;-&nbsp;&nbsp;View</li>
      </ol>
    </div>

    <div class="ihg-content-layout">

      <div class="row">

        <div class="col-xs-12">

          <div class="form-horizontal ihg-form">

            <div class="ihg-form-title clearfix">
              <h5>Assessor Basic Information</h5>
            </div>

            <div class="form-horizontal ihg-form">

              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Name:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.name}</p>
                </div>

                <label class="control-label col-xs-2">Email Address:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.email}</p>
                </div>
              </div>

              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Telephone:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.telephone}</p>
                </div>

                <label class="control-label col-xs-2">Mobile:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.mobile}</p>
                </div>
              </div>

              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Hotel Name:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.hotelName}</p>
                </div>

                <label class="control-label col-xs-2">Subregion:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.subregion}</p>
                </div>
              </div>

              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Title:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${assessor.title}</p>
                </div>
                <label class="control-label col-xs-2">Last Certificate Time:</label>
                <div class="col-xs-3">
                  <p class="form-control-static"><fmt:formatDate value="${records[0].createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
                </div>
              </div>

            </div>

            <div class="col-xs-12">
              <div class="ihg-form-title clearfix">
                <h5>Certification Record</h5>
              </div>
              <table class="table table-striped ihg-table tab-pane">
                <thead>
                  <tr>
                    <th>TIME</th>
                    <th>评价学员能力得分</th>
                    <th>开展练习和评价活动得分</th>
                    <th>认证考试得分</th>
                  </tr>
                </thead>
                <tbody>
                
                  <c:forEach var="record" items="${records}">
                    <tr>
                      <td><fmt:formatDate pattern="yyyy-MM-dd" value="${record.createTime}"/></td>
                      <td>${record.elearningOneScore}</td>
                      <td>${record.elearningTwoScore}</td>
                      <td>${record.finalTestScore}</td>
                    </tr>
                  </c:forEach>
                </tbody>
              </table>
            </div>
            
          </div>

        </div>

      </div>
    </div>
  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>

  <d:resource root="${ctx.resource}/build" type="script" src="js/page/system/assessor/assessor-list.js" />
  <script type="text/javascript">
    require([ 'page/system/assessor/assessor-list' ], function ( page ) {
      page.init();
    })
  </script>
    
</body>
</html>